#ifndef GETFILE_H
#define GETFILE_H
#include <QtGui/QFileDialog>
#include <QtCore/QString>
#include <QtCore/QDir>

class GetFile : public QWidget
{

public:
  string openFile()
  {
      QString filename = QFileDialog::getOpenFileName(this, tr("Open Document"), QDir::currentPath(),
                                                      tr("Document files (*.txt );;All files (*.*)") );
      if( !filename.isNull() )
      {
        return filename.toStdString();
      }
      return "";
  }
};

#endif
